<!-- Modal -->
<div class="modal-dialog wide" style="width: 800px;">
<div class="modal-content">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">
            <#if hrAssess??>
                <#if hrAssess.id??>
                    编辑
                <#else>
                    新增
                </#if>
            </#if>
        </h4>
    </div>
    <div class="modal-body">
        <div id="errorMessage"><#include "../../message.ftl" /></div>
        <form class="form-horizontal" role="form" id="hrAssessForm" method="post" action="${absoluteContextPath}/hr/hrAssess/save">
            <#if hrAssess??>
                <#if hrAssess.id??>
                    <input type="hidden" name="id" value="${hrAssess.id?c}"/>
                <#else>
                    <input type="hidden" name="id" value=""/>
                </#if>
            </#if>
            <div class="row">
                <div class="form-group col-md-6">
                    <label class="col-sm-4 control-label">员工姓名</label>

                    <div class="col-sm-6">
                        <div class="input-group">
                            <input name="employeeName" value="${hrAssess.employeeName!''}" type="text"
                                   class="form-control"
                                   readonly="true"/>
                            <input name="employeeId" id="employeeId2" value="${hrAssess.employeeId!''}"
                                   type="hidden" class="form-control">
                                <span class="input-group-addon" onclick="dorefreshCustome(this);"><i
                                        class="fa fa-search"></i></span>
                        </div>
                    </div>
                </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">年份</label>
                <div class="col-sm-6">
                    <input name="year" value="${hrAssess.year!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">JXJD</label>
                <div class="col-sm-6">
                    <input name="jxjd" value="${hrAssess.jxjd!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">PGJG	</label>
                <div class="col-sm-6">
                    <input name="pgjg" value="${hrAssess.pgjg!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">发展目标1	</label>
                <div class="col-sm-6">
                    <input name="developmentFirst" value="${hrAssess.developmentFirst!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">发展目标2	</label>
                <div class="col-sm-6">
                    <input name="developmentSecond" value="${hrAssess.developmentSecond!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">发展目标3	</label>
                <div class="col-sm-6">
                    <input name="developmentThird" value="${hrAssess.developmentThird!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">发展目标4	</label>
                <div class="col-sm-6">
                    <input name="developmentFourh" value="${hrAssess.developmentFourh!''}" type="text" class="form-control"/>
                </div>
            </div>
            <div class="form-group col-md-6">
                <label class="col-sm-4 control-label">发展目标5</label>
                <div class="col-sm-6">
                    <input name="developmentFifth" value="${hrAssess.developmentFifth!''}" type="text" class="form-control"/>
                </div>
            </div>
        
            </div>
        </form>
    </div>
    <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">关闭</button>
        <button type="button" class="btn btn-primary" onclick="save();">保存</button>
    </div>
</div>
</div>
<script>
    function save() {
        $("#" + "hrAssessForm").ajaxSubmit({
            success:function(data) {
                data = JSON.parse(data);
                if (data.returnCode == 1) {
                    $('#myModal').modal("hide");
                    $.showMessage({parentId:"showMessage",message:"信息保存成功！",type:"success"});
                    refreshTable();
                } else {
                    $.showMessage({parentId:"errorMessage",message:"<strong>错误信息</strong>：" + data.returnMsg,type:"error"});
                }
            }
        });
    }
</script>